﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ProductNodes.aspx.cs" Inherits="CreateStaticHtml.Pages.ProductNodes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="min-height: 600px;">
        <%
            if (IsLogin)
            {
        %>
        <h2>
            <%= product.ProductName %>
            ==> 节点列表
        </h2>
        <p>
            如果你想回到上个页面，请点击 <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false">返回</asp:HyperLink>
        </p>
        <ul>
            <%
                foreach (CreateStaticHtml.Models.TreeNode p in nodes)
                {
                    Response.Write("<li><a href=\"/Pages/ProductNodes.aspx?docid=" + p.Id + "\">" + p.NodeName + "</a><a style=\"float:right;\" href=\"/Pages/ProductDelete.aspx?productid=" + p.Id + "\" onclick=\"return confirm('是否真的要删除这个项目')\">删除</a></li>");
                }
            %>
        </ul>
        <div style="float: right;">
            <a href="/Pages/NodeAdd.aspx?docid=<%= Request.QueryString["docid"] %>&parentnodeid=0">新建节点</a>
        </div>
        <%
            }
        %>
    </div>
</asp:Content>
